-
Notifications
You must be signed in to change notification settings - Fork 724
[nrf fromtree] usb: remove Kconfig option USB_UART_CONSOLE #671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
carlescufi
merged 8 commits into
nrfconnect:main
from
jfischer-no:pr-remove-option-usb_uart_console
Nov 29, 2021
Merged
[nrf fromtree] usb: remove Kconfig option USB_UART_CONSOLE #671
carlescufi
merged 8 commits into
nrfconnect:main
from
jfischer-no:pr-remove-option-usb_uart_console
Nov 29, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
|
anangl
approved these changes
Nov 26, 2021
…riority Kconfig Refactors all of the serial drivers to use a shared driver class initialization priority configuration, CONFIG_SERIAL_INIT_PRIORITY, to allow configuring serial drivers separately from other devices. This is similar to other driver classes like I2C and SPI. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the existing default initialization priority for most drivers. The one exception is uart_lpc11u6x.c which previously used CONFIG_KERNEL_INIT_PRIORITY_OBJECTS. This change was motivated by an issue on the frdm_k64f board where the serial driver was incorrectly initialized before the clock control driver. Signed-off-by: Maureen Helm <[email protected]>
…al drivers Use same init level and priority as serial drivers. Align priority to the changes in commit ad14505 ("drivers: serial: Refactor drivers to use shared init priority Kconfig") Signed-off-by: Johann Fischer <[email protected]>
Do not change init level and priority of console driver if Kconfig option CONFIG_USB_UART_CONSOLE is enabled because commit 37f4d9b ("usb: cdc_acm: rework cdc_acm_poll_out to non-blocking") changed CDC ACM UART driver so that it more closely mimics the real controller and CDC ACM UART driver now uses the same init level and priority as regular serial driver. Signed-off-by: Johann Fischer <[email protected]>
This sample uses console driver and therefore Kconfig option CONFIG_CONSOLE and CONFIG_UART_CONSOLE are required. Kconfig option CONFIG_USB_UART_CONSOLE no longer has any influence here and should be removed. Signed-off-by: Johann Fischer <[email protected]>
Remove option CONFIG_USB_UART_CONSOLE where it has no influence or enable CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR without taking a detour through CONFIG_USB_UART_CONSOLE. Check the compatibility of chosen property instead of usage of CONFIG_USB_UART_CONSOLE option. Align how to wait for the readiness of CDC ACM UART. Signed-off-by: Johann Fischer <[email protected]>
Remove option CONFIG_USB_UART_CONSOLE where it has no influence or enable CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR without taking a detour through CONFIG_USB_UART_CONSOLE. Check the compatibility of chosen property instead of usage of CONFIG_USB_UART_CONSOLE option. Signed-off-by: Johann Fischer <[email protected]>
These boards try to configure CDC ACM UART as backend used by the console driver. CONFIG_USB_UART_CONSOLE has no more influence to console driver any and can be removed. Signed-off-by: Johann Fischer <[email protected]>
Since there are no more users and dependencies of Kconfig option USB_UART_CONSOLE in the tree, remove the remains and the option USB_UART_CONSOLE. Signed-off-by: Johann Fischer <[email protected]>
b47ac28 to
134e3e6
Compare
carlescufi
approved these changes
Nov 29, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adjust init level and priority of CDC ACM driver to regular serial drivers.
Limit scope of CONFIG_USB_UART_CONSOLE and finally remove this option.
zephyrproject-rtos/zephyr#40428